* {
    margin: 0px;
    padding: 0px;
}

html,
body {
    height: 100%;
    overflow: hidden;
}

header {
    display: block;
    margin: 0 auto;
    width: 500px;
    text-align: center;
}

header h1 {
    font-family: Arial;
    font-size: 60px;
    font-weight: bold;
}

/* newgamebtn样式 */
header #newgamebtn {
    display: block;
    margin: 20px auto;
    width: 100px;
    padding: 10px 10px;
    background-color: #8f7a66;
    font-family: Arial;
    color: white;
    border-radius: 20px;
    text-decoration: none;
}

header #newgamebtn:hover {
    background-color: #9f8b77;
}

/* score样式 */
header p {
    font-family: Arial;
    font-size: 25px;
    margin: 20px auto;
}

/* 主界面样式 */
#grid-container {
    position: relative;
    width: 460px;
    height: 460px;
    padding: 20px;
    margin: 35px auto;
    background-color: #bbada0;
    border-radius: 10px;
}

.grid-cell {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #ccc0b3;
    box-shadow: 3px 3px 1px 1px #9f8b77
}

.number-cell {
    border-radius: 50%;
    font-family: Arial;
    font-weight: bold;
    font-size: 60px;
    line-height: 100px;
    text-align: center;
    position: absolute;
    box-shadow: 5px 5px #9f8b77;
}

/* 游戏按钮布局 */
#play {
    margin: 0 auto;
    display: grid;
    grid-column-gap: 1rem;
    grid-row-gap: 1rem;
    grid-template-areas: 'left top top right '
        'left top top right'
        'left bottom bottom right'
        'left bottom bottom right';
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    width: 30rem;
}

#play button {
    font-size: 40px;
}

#play .left {
    grid-area: left;
}

#play .right {
    grid-area: right;
}

#play .top {
    grid-area: top;
}

#play .bottom {
    grid-area: bottom;
}

/* 信息样式 */

footer h3 {
    position:fixed;
    margin-left: 80vw;
}
@media screen and (max-width:768px){
    footer h3 {
        margin-top: 20rem;
    }
 }
